/*
 * Classname IServiceSystemException.java
 * 
 * Version Information
 * Date Feb 27, 2006
 *
 * Copyright (c) AmSoft Systems, 2006
 */
package net.amsoft.iservice.util.exception;

import net.amsoft.iservice.util.IServiceConstants;
import org.apache.log4j.Logger;

/**
 * @author jyoti
 *  
 */
public class IServiceSystemException extends IServiceException

{

	/**
	 *  
	 */
	public IServiceSystemException()
	{
		super();

	}
	/**
	 * @param message
	 * @param iErrorCode
	 */
	public IServiceSystemException(String message, int iErrorCode)
	{
		super(message, iErrorCode);

	}
	/**
	 * @param message
	 * @param errorCode
	 * @param errorTypeFlag
	 */
	public IServiceSystemException(String message, int errorCode,
			boolean errorTypeFlag)
	{
		super(message, errorCode, errorTypeFlag);

	}

	public IServiceSystemException(int iErrorCode)
	{
		super(IServiceConstants.getError(iErrorCode), iErrorCode, false);
	}
	
	public IServiceSystemException(Logger logger, int iErrorCode)
	{
		super(IServiceConstants.getError(iErrorCode), iErrorCode, false);
		logger.error(this.getMessage());
	}
}